#include "widget.h"
#include <QApplication>
#include "FileCrypt/aes.h"
#include "FileCrypt/file_crypt.h"


int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    MainWidget w;
    w.show();


    return a.exec();

//    unsigned char  fileName[] = "Makefile";
//    const unsigned char key[] = "Password"	;
//    unsigned char EncrytionFileName []= "encrypted";
//    unsigned char decrytionFileName []= "decrypted";

//    AES_KEY* ekey = (AES_KEY*)malloc( sizeof(AES_KEY) );
//    AES_KEY* dkey = (AES_KEY*)malloc( sizeof(AES_KEY) );


//    printf("Encryption Key...\n");

//    if( AES_set_encrypt_key(key,256,ekey) != 0 )
//        printf("Error , Generating the Encrypted Key\n");


//    printf("The Generated Key is =  \n");

//    int i=0;
//    for(i=0 ; i < (AES_MAXNR+1)*4 ; i++)
//        printf("%u",ekey->rd_key[i]);

//    printf("\n\n");

//    printf("Decryption Key...\n");


//    if( AES_set_decrypt_key(key,256,dkey) != 0 )
//        printf("Error , Generating the decrypted Key\n");

//    for(i=0 ; i < (AES_MAXNR+1)*4 ; i++)
//        printf("%u",dkey->rd_key[i]);

//    printf("\n\n");



//    encryptFile(fileName,EncrytionFileName,ekey);
//    decryptFile(EncrytionFileName,decrytionFileName,dkey);



}
